package com.lzx.adx.report.enums;

/**
 * 英特云和快手映射类
 */
public enum YtyKsEnum {
    activation("1", "1", "激活"),
    register("2", "", "注册"),
    Retained_the_next_day("3", "", "次日留存"),
    pay("4", "", "付费"),
    ;

    private String productCode;

    private String ksCode;

    private String message;

    YtyKsEnum(String productCode, String ksCode, String message) {
        this.productCode = productCode;
        this.ksCode = ksCode;
        this.message = message;
    }

    public String getProductCode() {
        return productCode;
    }

    public String getKsCode() {
        return ksCode;
    }

    public String getMessage() {
        return message;
    }


    public static String getKsCode(String productCode) {
        YtyKsEnum[] qttTtyEnum = YtyKsEnum.values();
        for (YtyKsEnum ttyEnum : qttTtyEnum) {
            if (ttyEnum.getProductCode().equals(productCode)) {
                return ttyEnum.getKsCode();
            }
        }
        return null;
    }
}
